<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header');
?>
<link rel="stylesheet" type="text/css" href="<?php echo CSS_PATH;?>monthly_calendar.css"/>
<body> 
<h2>Add Event</h2>
<form action="" method="post">
 <table>
  <tr>
   <td class="label"><label for="evt_name">Event:</label></td>
   <td><input type="text" id="evt_name" name="evt_name"></td>
  </tr><tr>
   <td class="label"><label for="evt_hour">Time:</label></td>
   <td>
    <select name="evt_hour" id="evt_hour">
     <option value="12">12</option>
<?php

    for ($i = 1; $i < 12; $i++)
    {
        printf('<option value="%d">%02d</option>', $i, $i);
    }
?>
    </select> : <select name="evt_min">
<?php
    for ($i = 0; $i < 59; $i += 15)
    {
            printf('<option value="%d">%02d</option>', $i, $i);
    }
?>
    </select>
    <select name="evt_pm">
     <option value="no">AM</option>
     <option value="yes">PM</option>
    </select>
   </td>
  </tr><tr>
   <td class="label">Notify</td>
   <td>
    <input type="radio" name="evt_notify" id="evt_notify_yes" value="yes" 
     checked="checked"/>
    <label for="evt_notify_yes">Yes</label>
    <input type="radio" name="evt_notify" id="evt_notify_no" value="no" />
    <label for="evt_notify_no">No</label>
   </td>
  </tr><tr>
   <td></td>
   <td>
    <input type="hidden" name="dosubmit" value="true"/>
    <input type="submit" value="Add Event"/></td>
  </tr>
 </table>
</form>
</body>
</html>